package org.example.elm.controller;

import org.example.elm.model.User;
import org.example.elm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/getByIdByPass")
    public User getUserByIdByPass(int userId, String password) {
        return null;
    }

    //暂时不考虑同名用户查询

    @RequestMapping("/save")
    public int saveUser(int userId, String password,String userName,int userSex) {
        return 0;
    }
}
